<style>
    .ui-grid-cell {
        height: auto !important;
    }
</style>
<div class="bg-light lter b-b wrapper-sm">
    <h1 class="m-n font-thin h4">回单管理</h1>
</div>
<div class="wrapper-sm" ng-controller="receiptManagentController">
    <div class="panel panel-default">
        <div class="panel-heading font-bold">查询</div>
        <div class="panel-body">
            <label class="control-label pull-left m-t-xs w-xs">客户单位</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_clientName" ng-model="queryTerms.clientName" placeholder="请输入客户单位" name="clientName">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">车牌号</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_carCode" ng-model="queryTerms.carCode" placeholder="请输入车牌号" name="carCode">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">线路地址</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_route" ng-model="queryTerms.route" placeholder="请输入线路地址" name="route">
            </div>
            <label class="control-label pull-left m-t-xs w-xs">合同号</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_contractNum" ng-model="queryTerms.contractNum" placeholder="请输入合同号" name="contractNum">
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left m-t-xs w-xs">发货起始时间</label>
            <div class="col-md-2 col-xs-12 form-group">
                <div class="input-group input-group-sm date">
                    <input id="dataTime" datetimepicker plugintype="datetime" name="shipStartTime" ng-model="queryTerms.shipStartTime" placeholder="起始时间" class="form-control" type="text" />
                    <span id="opendataTime" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">发货结束时间</label>
            <div class="col-md-2 col-xs-12 form-group">
                <div class="input-group input-group-sm date">
                    <input id="dataTimeEnd" datetimepicker plugintype="datetime" name="shipEndTime" ng-model="queryTerms.shipEndTime" placeholder="结束时间" class="form-control" type="text" />
                    <span id="opendataTimeEnd" class="input-group-addon curpoint">
                        <span class="glyphicon glyphicon-calendar"></span>
                    </span>
                </div>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">合同状态</label>
            <div class="col-md-2 form-group">
                <select class="form-control input-sm" id="table_receiptManagent_contractStatus" name="contractStatus" ng-model="queryTerms.contractStatus" ng-options="x.value as x.text for x in contractStatusDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">油卡状态</label>
            <div class="col-md-2 form-group">
                <select class="form-control input-sm" id="table_receiptManagent_oilCardStatus" name="oilCardStatus" ng-model="queryTerms.oilCardStatus" ng-options="x.value as x.text for x in oilCardStatusDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left m-t-xs w-xs">回单状态</label>
            <div class="col-md-2 form-group">
                <select class="form-control input-sm" id="table_receiptManagent_receiptPriceStatus" name="receiptPriceStatus" ng-model="queryTerms.receiptPriceStatus" ng-options="x.value as x.text for x in receiptPriceStatusDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">承运商</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_carrierName" ng-model="queryTerms.carrierName" placeholder="承运商" name="carrierName">
            </div>
            <label class="control-label pull-left  m-t-xs w-xs">客服专员</label>
            <div class="col-md-2 form-group">
                <select class="form-control input-sm" id="table_receiptManagent_customerService" name="customerService" ng-model="queryTerms.customerServiceId" ng-options="x.id as x.realName for x in customerServiceDropDown">
                    <option value="">全部</option>
                </select>
            </div>
            <label class="control-label pull-left m-t-xs w-xs">发货地址</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_shipAddress" ng-model="queryTerms.shipAddress" placeholder="请输入发货地址" name="shipAddress">
            </div>
            <div class="line line-xs pull-in"></div>
            <label class="control-label pull-left m-t-xs w-xs">送货地址</label>
            <div class="col-md-2 form-group">
                <input type="text" class="form-control input-sm" id="table_receiptManagent_deliverAddress" ng-model="queryTerms.deliverAddress" placeholder="请输入送货地址" name="deliverAddress">
            </div>

            <label class="control-label pull-left m-t-xs w-xs">结算单据状态</label>
            <div class="col-md-2 form-group">
                <select class="form-control input-sm" id="table_receiptManagent_billStatus" name="receiptPriceStatus" ng-model="queryTerms.receiptBillStatus" ng-options="x.value as x.text for x in receiptBillStatusDropDown">
                    <option value="">全部</option>
                </select>
            </div>


            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12"></div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12"></div>
            <label class="control-label pull-left w-xs"></label>
            <div class="col-md-2 col-xs-12">
                <button id="table_receiptManagent_queryFunc" ng-click="queryFunc()" class="btn btn-sm btn-default btn-addon" ng-class="{'disabled':querying}" ng-disabled="querying">
                    <i class="fa fa-search" ng-show="!querying"></i>
                    <i class="fa fa-spinner no-bordr" ng-show="querying" ng-class="{'fa-spin':querying}"></i>
                    <span ng-show="!querying">查询</span>
                    <span ng-show="querying">查询中...</span>
                </button>
            </div>
        </div>
    </div>
    <div class="panel panel-default">
        <div class="panel-heading">
            回单管理列表
        </div>
        <div class="table-responsive">
            <div ui-grid="gridOptions" ui-grid-resize-columns ui-grid-pagination ui-grid-selection ui-grid-exporter ui-grid-auto-resize style="height:{{heightA}}px; min-width:1000px; min-height:395px; overflow-y:hidden;">
                <div class="watermark" ng-if="!gridOptions.data.length">暂无数据</div>
            </div>
        </div>
        <div class="panel-body">
            <button id="table_receiptManagent_receiptOrderDetail" ng-click="receiptOrderDetail()" class="pull-right-xs btn btn-sm btn-info btn-addon " ng-if="canReceiptOrderDetail"><i class="fa fa-pencil"></i>回单管理</button>
            <button id="table_receiptManagent_exportOrderList" ng-click="exportFunc()" class="pull-right-xs btn btn-sm btn-success btn-addon " ng-if="canExport"><i class="fa fa-download"></i>导出报表</button>
        </div>
    </div>
</div>